#ifndef BULLETTRACKITEM_H
#define BULLETTRACKITEM_H

#include <QGraphicsObject>
#include <QTimer>

typedef struct BulletTrackInfo
{
    QPointF startPt;
    QPointF endPt;
    bool    bShow;
    float   fOpacity;
    bool    bCup;
}BTInfo;

class BulletTrackItem : public QGraphicsObject
{
    Q_OBJECT
public:
    explicit BulletTrackItem();

    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    virtual QRectF boundingRect() const;

    void initArr();
    void SetPt(float x);
public:
    QTimer  m_timer;
    QVector<BTInfo> m_btarr;
signals:

public slots:
    void logic();
};

#endif // BULLETTRACKITEM_H
